﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace appDataContracts
{
    [DataContract]
    public class SerializedOrder
    {
        [DataMember]
        public int ORDERID { get; set; }
        [DataMember]
        public int CLIENTID { get; set; }
        [DataMember]
        public DateTime ORDERDATE { get; set; }
        [DataMember]
        public bool ORDERPAID { get; set; }
        [DataMember]
        public Decimal ORDERTOTAL { get; set; }
        [DataMember]
        public String ORDERCARDOWNER { get; set; }
        [DataMember]
        public String ORDERCARDNUMBER { get; set; }
        [DataMember]
        public DateTime ORDERCARDEXPIRATIONDATE { get; set; }
        [DataMember]
        public String ORDERCARDSECURENUMBER { get; set; }
        [DataMember]
        public String ORDERCARDTYPE { get; set; }
        [DataMember]
        public List<SerializedContain> ARTICLE { get; set; }

        public SerializedOrder(int ORDERID, int CLIENTID, DateTime ORDERDATE, bool ORDERPAID, Decimal ORDERTOTAL,
            String ORDERCARDOWNER, String ORDERCARDNUMBER, DateTime ORDERCARDEXPIRATIONDATE,
            String ORDERSECURENUMBER, String ORDERCARDTYPE, List<SerializedContain> ARTICLE)
        {
            this.ORDERID = ORDERID;
            this.CLIENTID = CLIENTID;
            this.ORDERDATE = ORDERDATE;
            this.ORDERPAID = ORDERPAID;
            this.ORDERTOTAL = ORDERTOTAL;
            this.ORDERCARDOWNER = ORDERCARDNUMBER;
            this.ORDERCARDNUMBER = ORDERCARDNUMBER;
            this.ORDERCARDEXPIRATIONDATE = ORDERCARDEXPIRATIONDATE;
            this.ORDERCARDSECURENUMBER = ORDERSECURENUMBER;
            this.ORDERCARDTYPE = ORDERCARDTYPE;
            this.ARTICLE = ARTICLE;
        }
    }
}